using WindsorContainer.Domain;

namespace WindsorContainer.Service
{
    public class CustomerServiceFormattingDecorator : ICustomerServiceFormattingDecorator
    {
        private ICustomerService inner;

        public CustomerServiceFormattingDecorator(ICustomerService inner)
        {
            this.inner = inner;
        }

        public string FormatCustomerName(int customerId)
        {
            Customer customer = inner.FindCustomerById(1);
            return string.Format("{0} {1}", customer.LastName, customer.FirstName);
        }
    }
}
